package top.huxy.boot.util;

import java.util.HashMap;

/**
 * @author HuXY
 */
public class CollectionUtils {
    public static <K, V> HashMap<K, V> createHashMap(int size, Class<K> keyType, Class<V> valueType) {
        int rightSize = (int) (size / 0.75) + 1;
        return new HashMap<>(rightSize, 0.75F);
    }
}
